import request from '@/utils/request'
// 业务员
// 销售排行榜 饼图
export function querySalerRankTable(data) {
  return request({
    url: '/reportSaleman/querySalerRankTable',
    method: 'post',
    data
  })
}
// 半年销售记录(折线图)
export function querySalePriceTable(data) {
  return request({
    url: '/reportSaleman/querySalePriceTable',
    method: 'post',
    data
  })
}
// 查询半年和过去半年销售记录对比(柱状图)
export function querySalePriceCompTable(data) {
  return request({
    url: '/reportSaleman/querySalePriceCompTable',
    method: 'post',
    data
  })
}
// 查询头部信息
export function querySalerHeader(data) {
  return request({
    url: '/reportSaleman/querySalerHeader',
    method: 'post',
    data
  })
}
// 查询销售员
export function queryUserstaList(data) {
  return request({
    url: '/tSxUserstafftype/queryUserstaList',
    method: 'post',
    data
  })
}

// 采购员
// 查询头部信息
export function queryReportPooHeader(data) {
  return request({
    url: '/reportpoo/queryReportPooHeader',
    method: 'post',
    data
  })
}
// 即将迟交明细表 - 分
export function queryLatePoorderList(data) {
  return request({
    url: '/reportpoo/queryLatePoorderList',
    method: 'post',
    data
  })
}
// 采购员达成排行榜
export function queryPoorderRankingList(data) {
  return request({
    url: '/reportpoo/queryPoorderRankingList',
    method: 'post',
    data
  })
}
// 供应商上月交期达成率
export function querySupplierPercentage(data) {
  return request({
    url: '/reportpoo/querySupplierPercentage',
    method: 'post',
    data
  })
}
